From: Dmitry Gutov Date: Wed, 26 Dec 2012 19:52:56 +0000 (+0400) Subject: * lisp/progmodes/ruby-mode.el (auto-mode-alist): `purecopy' the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~3615^2~1223 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=78269b95cfe64d3ab5fabf1c2a63fa6abc7e0978;p=emacs.git * lisp/progmodes/ruby-mode.el (auto-mode-alist): `purecopy' the Rakefile regexp. (auto-mode-alist): Associate .gemspec files with ruby-mode (https://bugs.ruby-lang.org/issues/5453). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5ff36e04614..4b43050ddf5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2012-12-26 Dmitry Gutov + + * progmodes/ruby-mode.el (auto-mode-alist): `purecopy' the + Rakefile regexp. + (auto-mode-alist): Associate .gemspec files with ruby-mode + (https://bugs.ruby-lang.org/issues/5453). + 2012-12-26 Jürgen Hötzel * net/tramp-adb.el (tramp-adb-get-ls-command): New defun. Suppress diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index bc53c1f9556..b223aece416 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1682,7 +1682,9 @@ The variable `ruby-indent-level' controls the amount of indentation. ;;;###autoload (add-to-list 'auto-mode-alist (cons (purecopy "\\.rb\\'") 'ruby-mode)) ;;;###autoload -(add-to-list 'auto-mode-alist '("Rakefile\\'" . ruby-mode)) +(add-to-list 'auto-mode-alist (cons (purecopy "Rakefile\\'") 'ruby-mode)) +;;;###autoload +(add-to-list 'auto-mode-alist (cons (purecopy "\\.gemspec\\'") 'ruby-mode)) ;;;###autoload (dolist (name (list "ruby" "rbx" "jruby" "ruby1.9" "ruby1.8"))